WPF and Silverlight Edition Basic Library > TabControl > TabControl Quick Start > Step 2 of 4: Adding Tab Pages |
In the last step, you created a WPF or Silverlight project in Visual Studio and then added a C1TabControl control with three tabs to it. In this step, you will customize each tab page.
Complete the following steps:
XAML Copy Code<c1:C1TabItem Header="Tab 1"/>
XAML Copy Code <c1:C1TabItem Header="Tab 2" Content="I am the Content property set to a string"/>
XAML Copy Code <c1:C1TabItem Header="Tab 3" Content="You can't close this tab. Try it." CanUserClose="False"/>
Setting the CanUserClose property to False prevents users from closing the tab at run time.
You have completed step 2 of 4. In this step, you customized the three pages of the C1TabControl control. In the next step, you'll customize the appearance and behavior of the C1TabControl control.